package com.caoustc.okhttplib.okhttp.platform

import com.caoustc.okhttplib.okhttp.Part
import java.util.*

/**
 * Created by cz on 2018/3/13.
 */
class PartComparator : Comparator<Part?> {
    override fun compare(part1: Part?, part2: Part?): Int {
        return part2?.key?.let { part1?.key?.compareTo(it) }?:-1
    }
}